package com.kestrel.space.core.mapper;

import com.kestrel.space.core.model.Blog;
import com.kestrel.space.core.query.BlogQuery;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * @author yebolin
 * @date 2024/8/23
 */
public interface BlogMapper extends Mapper<Blog> {
    List<Blog> listOrganizationBlogs(BlogQuery query);

    List<Long> listMyBlogsInOrg(@Param("userId") Long userId, @Param("organizationId") Long organizationId);
}
